package com.serviceImpl;
import java.util.List;
import javax.annotation.Resource;
import org.springframework.stereotype.Service;
import com.entity.Comment;
import com.mapper.ArticleMapper;
import com.mapper.CommentMapper;
import com.service.CommentService;

@Service("commentServiceImpl")
public class CommentServiceImpl implements CommentService{
@Resource
private CommentMapper commentMapper;
@Resource 
private ArticleMapper articleMapper;

@Override
public List<Comment> listRecentComment(Integer limit) {
	List<Comment> listRecentComment = commentMapper.listRecentComment(limit);
	
	return listRecentComment;
}
}
